import Vue from 'vue'
import App from './App.vue'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import router from './router'
import store from './store'
import axios from '@/assets/js/axios'
import VeLine from 'v-charts/lib/line.common'

Vue.component(VeLine.name, VeLine)

Vue.prototype.$axios = axios
//Vue.prototype.$api = 'http://api.youjingxi.wang'
Vue.prototype.$api = ''
Vue.use(ElementUI);

Vue.prototype.$goTop = () => {
  // chrome
  document.body.scrollTop = 0
  // firefox
  document.documentElement.scrollTop = 0
  // safari
  window.pageYOffset = 0
}

Vue.config.productionTip = false

let app = new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
